package shzj.orm.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class CategoryExpertGradeExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public CategoryExpertGradeExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andPkIsNull() {
            addCriterion("PK is null");
            return (Criteria) this;
        }

        public Criteria andPkIsNotNull() {
            addCriterion("PK is not null");
            return (Criteria) this;
        }

        public Criteria andPkEqualTo(Long value) {
            addCriterion("PK =", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkNotEqualTo(Long value) {
            addCriterion("PK <>", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkGreaterThan(Long value) {
            addCriterion("PK >", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkGreaterThanOrEqualTo(Long value) {
            addCriterion("PK >=", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkLessThan(Long value) {
            addCriterion("PK <", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkLessThanOrEqualTo(Long value) {
            addCriterion("PK <=", value, "pk");
            return (Criteria) this;
        }

        public Criteria andPkIn(List<Long> values) {
            addCriterion("PK in", values, "pk");
            return (Criteria) this;
        }

        public Criteria andPkNotIn(List<Long> values) {
            addCriterion("PK not in", values, "pk");
            return (Criteria) this;
        }

        public Criteria andPkBetween(Long value1, Long value2) {
            addCriterion("PK between", value1, value2, "pk");
            return (Criteria) this;
        }

        public Criteria andPkNotBetween(Long value1, Long value2) {
            addCriterion("PK not between", value1, value2, "pk");
            return (Criteria) this;
        }

        public Criteria andCategoryFkIsNull() {
            addCriterion("CATEGORY_FK is null");
            return (Criteria) this;
        }

        public Criteria andCategoryFkIsNotNull() {
            addCriterion("CATEGORY_FK is not null");
            return (Criteria) this;
        }

        public Criteria andCategoryFkEqualTo(Long value) {
            addCriterion("CATEGORY_FK =", value, "categoryFk");
            return (Criteria) this;
        }

        public Criteria andCategoryFkNotEqualTo(Long value) {
            addCriterion("CATEGORY_FK <>", value, "categoryFk");
            return (Criteria) this;
        }

        public Criteria andCategoryFkGreaterThan(Long value) {
            addCriterion("CATEGORY_FK >", value, "categoryFk");
            return (Criteria) this;
        }

        public Criteria andCategoryFkGreaterThanOrEqualTo(Long value) {
            addCriterion("CATEGORY_FK >=", value, "categoryFk");
            return (Criteria) this;
        }

        public Criteria andCategoryFkLessThan(Long value) {
            addCriterion("CATEGORY_FK <", value, "categoryFk");
            return (Criteria) this;
        }

        public Criteria andCategoryFkLessThanOrEqualTo(Long value) {
            addCriterion("CATEGORY_FK <=", value, "categoryFk");
            return (Criteria) this;
        }

        public Criteria andCategoryFkIn(List<Long> values) {
            addCriterion("CATEGORY_FK in", values, "categoryFk");
            return (Criteria) this;
        }

        public Criteria andCategoryFkNotIn(List<Long> values) {
            addCriterion("CATEGORY_FK not in", values, "categoryFk");
            return (Criteria) this;
        }

        public Criteria andCategoryFkBetween(Long value1, Long value2) {
            addCriterion("CATEGORY_FK between", value1, value2, "categoryFk");
            return (Criteria) this;
        }

        public Criteria andCategoryFkNotBetween(Long value1, Long value2) {
            addCriterion("CATEGORY_FK not between", value1, value2, "categoryFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkIsNull() {
            addCriterion("EXPERT_FK is null");
            return (Criteria) this;
        }

        public Criteria andExpertFkIsNotNull() {
            addCriterion("EXPERT_FK is not null");
            return (Criteria) this;
        }

        public Criteria andExpertFkEqualTo(Long value) {
            addCriterion("EXPERT_FK =", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkNotEqualTo(Long value) {
            addCriterion("EXPERT_FK <>", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkGreaterThan(Long value) {
            addCriterion("EXPERT_FK >", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkGreaterThanOrEqualTo(Long value) {
            addCriterion("EXPERT_FK >=", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkLessThan(Long value) {
            addCriterion("EXPERT_FK <", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkLessThanOrEqualTo(Long value) {
            addCriterion("EXPERT_FK <=", value, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkIn(List<Long> values) {
            addCriterion("EXPERT_FK in", values, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkNotIn(List<Long> values) {
            addCriterion("EXPERT_FK not in", values, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkBetween(Long value1, Long value2) {
            addCriterion("EXPERT_FK between", value1, value2, "expertFk");
            return (Criteria) this;
        }

        public Criteria andExpertFkNotBetween(Long value1, Long value2) {
            addCriterion("EXPERT_FK not between", value1, value2, "expertFk");
            return (Criteria) this;
        }

        public Criteria andGradeIsNull() {
            addCriterion("GRADE is null");
            return (Criteria) this;
        }

        public Criteria andGradeIsNotNull() {
            addCriterion("GRADE is not null");
            return (Criteria) this;
        }

        public Criteria andGradeEqualTo(String value) {
            addCriterion("GRADE =", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotEqualTo(String value) {
            addCriterion("GRADE <>", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeGreaterThan(String value) {
            addCriterion("GRADE >", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeGreaterThanOrEqualTo(String value) {
            addCriterion("GRADE >=", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLessThan(String value) {
            addCriterion("GRADE <", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLessThanOrEqualTo(String value) {
            addCriterion("GRADE <=", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeLike(String value) {
            addCriterion("GRADE like", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotLike(String value) {
            addCriterion("GRADE not like", value, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeIn(List<String> values) {
            addCriterion("GRADE in", values, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotIn(List<String> values) {
            addCriterion("GRADE not in", values, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeBetween(String value1, String value2) {
            addCriterion("GRADE between", value1, value2, "grade");
            return (Criteria) this;
        }

        public Criteria andGradeNotBetween(String value1, String value2) {
            addCriterion("GRADE not between", value1, value2, "grade");
            return (Criteria) this;
        }

        public Criteria andSaveDateIsNull() {
            addCriterion("SAVE_DATE is null");
            return (Criteria) this;
        }

        public Criteria andSaveDateIsNotNull() {
            addCriterion("SAVE_DATE is not null");
            return (Criteria) this;
        }

        public Criteria andSaveDateEqualTo(Date value) {
            addCriterionForJDBCDate("SAVE_DATE =", value, "saveDate");
            return (Criteria) this;
        }

        public Criteria andSaveDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("SAVE_DATE <>", value, "saveDate");
            return (Criteria) this;
        }

        public Criteria andSaveDateGreaterThan(Date value) {
            addCriterionForJDBCDate("SAVE_DATE >", value, "saveDate");
            return (Criteria) this;
        }

        public Criteria andSaveDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("SAVE_DATE >=", value, "saveDate");
            return (Criteria) this;
        }

        public Criteria andSaveDateLessThan(Date value) {
            addCriterionForJDBCDate("SAVE_DATE <", value, "saveDate");
            return (Criteria) this;
        }

        public Criteria andSaveDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("SAVE_DATE <=", value, "saveDate");
            return (Criteria) this;
        }

        public Criteria andSaveDateIn(List<Date> values) {
            addCriterionForJDBCDate("SAVE_DATE in", values, "saveDate");
            return (Criteria) this;
        }

        public Criteria andSaveDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("SAVE_DATE not in", values, "saveDate");
            return (Criteria) this;
        }

        public Criteria andSaveDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("SAVE_DATE between", value1, value2, "saveDate");
            return (Criteria) this;
        }

        public Criteria andSaveDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("SAVE_DATE not between", value1, value2, "saveDate");
            return (Criteria) this;
        }

        public Criteria andFlagIsNull() {
            addCriterion("FLAG is null");
            return (Criteria) this;
        }

        public Criteria andFlagIsNotNull() {
            addCriterion("FLAG is not null");
            return (Criteria) this;
        }

        public Criteria andFlagEqualTo(Integer value) {
            addCriterion("FLAG =", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotEqualTo(Integer value) {
            addCriterion("FLAG <>", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThan(Integer value) {
            addCriterion("FLAG >", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagGreaterThanOrEqualTo(Integer value) {
            addCriterion("FLAG >=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThan(Integer value) {
            addCriterion("FLAG <", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagLessThanOrEqualTo(Integer value) {
            addCriterion("FLAG <=", value, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagIn(List<Integer> values) {
            addCriterion("FLAG in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotIn(List<Integer> values) {
            addCriterion("FLAG not in", values, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagBetween(Integer value1, Integer value2) {
            addCriterion("FLAG between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andFlagNotBetween(Integer value1, Integer value2) {
            addCriterion("FLAG not between", value1, value2, "flag");
            return (Criteria) this;
        }

        public Criteria andExtend1IsNull() {
            addCriterion("EXTEND1 is null");
            return (Criteria) this;
        }

        public Criteria andExtend1IsNotNull() {
            addCriterion("EXTEND1 is not null");
            return (Criteria) this;
        }

        public Criteria andExtend1EqualTo(String value) {
            addCriterion("EXTEND1 =", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1NotEqualTo(String value) {
            addCriterion("EXTEND1 <>", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1GreaterThan(String value) {
            addCriterion("EXTEND1 >", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1GreaterThanOrEqualTo(String value) {
            addCriterion("EXTEND1 >=", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1LessThan(String value) {
            addCriterion("EXTEND1 <", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1LessThanOrEqualTo(String value) {
            addCriterion("EXTEND1 <=", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1Like(String value) {
            addCriterion("EXTEND1 like", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1NotLike(String value) {
            addCriterion("EXTEND1 not like", value, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1In(List<String> values) {
            addCriterion("EXTEND1 in", values, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1NotIn(List<String> values) {
            addCriterion("EXTEND1 not in", values, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1Between(String value1, String value2) {
            addCriterion("EXTEND1 between", value1, value2, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend1NotBetween(String value1, String value2) {
            addCriterion("EXTEND1 not between", value1, value2, "extend1");
            return (Criteria) this;
        }

        public Criteria andExtend2IsNull() {
            addCriterion("EXTEND2 is null");
            return (Criteria) this;
        }

        public Criteria andExtend2IsNotNull() {
            addCriterion("EXTEND2 is not null");
            return (Criteria) this;
        }

        public Criteria andExtend2EqualTo(String value) {
            addCriterion("EXTEND2 =", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2NotEqualTo(String value) {
            addCriterion("EXTEND2 <>", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2GreaterThan(String value) {
            addCriterion("EXTEND2 >", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2GreaterThanOrEqualTo(String value) {
            addCriterion("EXTEND2 >=", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2LessThan(String value) {
            addCriterion("EXTEND2 <", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2LessThanOrEqualTo(String value) {
            addCriterion("EXTEND2 <=", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2Like(String value) {
            addCriterion("EXTEND2 like", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2NotLike(String value) {
            addCriterion("EXTEND2 not like", value, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2In(List<String> values) {
            addCriterion("EXTEND2 in", values, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2NotIn(List<String> values) {
            addCriterion("EXTEND2 not in", values, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2Between(String value1, String value2) {
            addCriterion("EXTEND2 between", value1, value2, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend2NotBetween(String value1, String value2) {
            addCriterion("EXTEND2 not between", value1, value2, "extend2");
            return (Criteria) this;
        }

        public Criteria andExtend3IsNull() {
            addCriterion("EXTEND3 is null");
            return (Criteria) this;
        }

        public Criteria andExtend3IsNotNull() {
            addCriterion("EXTEND3 is not null");
            return (Criteria) this;
        }

        public Criteria andExtend3EqualTo(String value) {
            addCriterion("EXTEND3 =", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3NotEqualTo(String value) {
            addCriterion("EXTEND3 <>", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3GreaterThan(String value) {
            addCriterion("EXTEND3 >", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3GreaterThanOrEqualTo(String value) {
            addCriterion("EXTEND3 >=", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3LessThan(String value) {
            addCriterion("EXTEND3 <", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3LessThanOrEqualTo(String value) {
            addCriterion("EXTEND3 <=", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3Like(String value) {
            addCriterion("EXTEND3 like", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3NotLike(String value) {
            addCriterion("EXTEND3 not like", value, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3In(List<String> values) {
            addCriterion("EXTEND3 in", values, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3NotIn(List<String> values) {
            addCriterion("EXTEND3 not in", values, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3Between(String value1, String value2) {
            addCriterion("EXTEND3 between", value1, value2, "extend3");
            return (Criteria) this;
        }

        public Criteria andExtend3NotBetween(String value1, String value2) {
            addCriterion("EXTEND3 not between", value1, value2, "extend3");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}